﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="Iridescent.NotebookPage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="NotesItemTemplate">
			<Grid Margin="{StaticResource PhoneTouchTargetOverhang}">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"/>
					<ColumnDefinition/>
				</Grid.ColumnDefinitions>
				<Image Source="/icons/appbar.favs.rest.png" Stretch="None" VerticalAlignment="Top" d:LayoutOverrides="Width" Margin="0,6,12,0"/>
				<TextBlock Text="{Binding Content}" FontSize="{StaticResource PhoneFontSizeNormal}" TextWrapping="Wrap" Margin="0" d:LayoutOverrides="Width, Height" Grid.Column="1"/>
			</Grid>
		</DataTemplate>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar>
			<shell:ApplicationBarIconButton IconUri="/icons/appbar.new.rest.png" Text="新建"/>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{Binding Source={StaticResource NotesSampleData}}">
		<!--Pivot Control-->
		<controls:Pivot Title="销售心理学">
			<!--Pivot item one-->
			<controls:PivotItem Header="今天">
				<Grid>
					<ListBox ItemTemplate="{StaticResource NotesItemTemplate}" ItemsSource="{Binding Notes}"/>
				</Grid>
			</controls:PivotItem>

 			<!--Pivot item two-->
			<controls:PivotItem Header="重点">
				<Grid/>
			</controls:PivotItem>
			<controls:PivotItem Header="标签">
				<Grid/>
			</controls:PivotItem>
			<controls:PivotItem Header="日期">
				<Grid/>
			</controls:PivotItem>
		</controls:Pivot>
	</Grid>
</phone:PhoneApplicationPage>